package cn.stylefeng.guns.modular.tool.mapper;

import cn.stylefeng.guns.modular.tool.entity.ToolExpressExcel;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressExcelParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolExpressExcelResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 快递统计导入 Mapper 接口
 */
public interface ToolExpressExcelMapper extends BaseMapper<ToolExpressExcel> {

    /**
     * 获取列表
     *
     * @author 
     * @Date 2022-03-27
     */
    List<ToolExpressExcelResult> customList(@Param("paramCondition") ToolExpressExcelParam paramCondition);

    /**
     * 获取map列表
     *
     * @author 
     * @Date 2022-03-27
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ToolExpressExcelParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author 
     * @Date 2022-03-27
     */
    Page<ToolExpressExcelResult> customPageList(@Param("page") Page page, @Param("paramCondition") ToolExpressExcelParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author 
     * @Date 2022-03-27
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ToolExpressExcelParam paramCondition);

	boolean saveBatchList(@Param("list")List<ToolExpressExcelParam> list);

	List<ToolExpressExcelResult> findListBySpec(@Param("paramCondition")ToolExpressExcelParam param);

	void deleteBySpec(@Param("paramCondition")ToolExpressExcelParam toolExpressExcelParam);

	List<ToolExpressExcelResult> findSumListBySpec(@Param("paramCondition")ToolExpressExcelParam param);

	List<ToolExpressExcelResult> findSumListBySpec2(@Param("paramCondition")ToolExpressExcelParam param);

	List<ToolExpressExcelResult> findListBySpecOne(@Param("paramCondition")ToolExpressExcelParam param,@Param("operateId")Long operateId);

	void updateBySpec(@Param("paramCondition")ToolExpressExcelParam param);

	void updateBySpec2(@Param("paramCondition")ToolExpressExcelParam param);

	Page<ToolExpressExcelResult> findPageTjnumssBySpec(@Param("page") Page page, @Param("paramCondition") ToolExpressExcelParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

	Page<ToolExpressExcelResult> findPageTjnumssSumBySpec(@Param("page") Page page, @Param("paramCondition") ToolExpressExcelParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

}
